package com.markedquilt.springaop.aop;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class IUserAop {

//  @Before("execution(* com.markedquilt.springaop.service.Impl.IUserServiceImpl.printMsg())")
  @Around("@annotation(com.markedquilt.springaop.annotation.MyAnnotation)")
  public void before(ProceedingJoinPoint point) throws Throwable {
    System.out.println(" ========== print some log info start ==========");
    point.proceed();
    System.out.println(" ========== print some log info end ==========");
  }


}
